<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.mysql.jdbc.Connection"%>
<%@page import="com.mysql.jdbc.Driver"%>
<%@page import="java.sql.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登陆</title>
	<!-- 
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	 -->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="ch-cn">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <body bgcolor="#2E77ED">
  <form method="post" name="Login" action="LoginServlet" >
  <div align="center"> 
    &nbsp;&nbsp;&nbsp;
    <p><font color="#ff0080"> <br>
      </font><font size="5" color="#ff0080"><strong>欢迎进入安徽科技学院新闻客户端管理系统</strong></font><br>
    </p>
  </div>
    <br><br><br><br><br><br>
    <div align="center">
      <table width="308" height="102" border="0">
        <tr>
          <th width="82" height="48" scope="row"><font color="#FF00FF">用户名：</font></th>
          <td width="210"><input type="text" name="username" size="30" maxlength="20"></td>
        </tr>
        <tr>
          <th scope="row"><font color="#FF00FF">密&nbsp; &nbsp; 码：</font></th>
          <td><input type="password" name="password" size="30" maxlength="40"></td>
        </tr>
      </table>
      <br>
    <br>
    </div>
    <div align="center"><div align="center">
      <p><br>
      </p>
      </div><br>   </div> 
    <div align="center">
	    <input type="submit" value="登陆" name="summit" onClick="validateLogin();" > &nbsp; &nbsp; 
	    <input type="reset" value="重置" name="reset">
    </div>
  </form>
  
   <script language="javaScript">
   function validateLogin()
     {
      var sUserName = document.Login.username.value;
      var sPassword = document.Login.password.value;
      if( sUserName=="" )
      {
       alert("请输入用户名！");
       return false;
      }
      if( sPassword=="" )
      {
       alert("请输入密码！");
       return false;
      }
     }
    </script>
  
</body>

   

</html>
